package com.donleo.stmg.entity.service;

import com.donleo.stmg.common.api.CommonResult;
import com.donleo.stmg.entity.model.Daily;
import com.baomidou.mybatisplus.extension.service.IService;
import com.donleo.stmg.entity.vo.DailyVo;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * <p>
 * 日报表 服务类
 * </p>
 *
 * @author liangd
 * @since 2020-12-21
 */
public interface DailyService extends IService<Daily> {

    CommonResult add(Daily daily);

    CommonResult saveDaily(Daily daily);

    CommonResult deletes(List<Integer> asList);

    CommonResult updateDaily(Daily daily);

    Daily findById(Integer id);

    List<Daily> findAll(DailyVo dailyVo);

    long getCount(DailyVo dailyVo);

    CommonResult showed(Integer id);

    /**
     * 导出word
     */
    String exportWord(Daily daily);

    /**
     * 下载word
     * @param fileName 文件名
     * @param response 响应头
     */
    void downLoad(String fileName, HttpServletResponse response);
}
